package com.shop.resource.api;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Description:
 *
 * @author zhoulk
 * @date: 2019年05月08日  17:29
 */
@RequestMapping(value = "/sms")
public interface ISmsApi {

    @PostMapping(value = "/smsCode", produces = MediaType.APPLICATION_JSON_VALUE)
    void sendSmsCode(String content);

    @GetMapping(value = "/sendMsg", produces = MediaType.APPLICATION_JSON_VALUE)
    Map<String,Object> sendSmsMsg(@RequestParam("content") String content, @RequestParam("mobile") String mobile);
}
